const columns ={
  //基本信息
  baseInfoColumns: [
    { title: '序号', customRender:(text,record,index)=>index+1,width:60 },
    { title: '治疗项目', dataIndex: 'itemName',width: 130, ellipsis: true },
    { title: '次数', dataIndex: 'useTimes', width: 100, ellipsis: true},
    { title: '主治医生', dataIndex: 'mainDr', width: 100,ellipsis: true },
    { title: '医生助理', dataIndex: 'treatDr',width: 100, ellipsis: true },
    { title: '美容师', dataIndex: 'beautyDr', width: 90, ellipsis: true },
    { title: '麻醉师', dataIndex: 'hocusDr', width: 90,ellipsis: true },
    { title: '护士', dataIndex: 'nurse', width: 90, ellipsis: true },
    { title: '状态', dataIndex: 'state', width: 80, ellipsis: true },
  ],
  //门诊处方
  outpatientRecipeColumns: [
    { title: '序号', customRender:(text,record,index)=>index+1,width:50 },
    { title: '处方号',
      dataIndex: 'recipelId',
      width: 150,
      customRender: (text, record, index) => {
        return {
          children: text,
          attrs: {
            rowSpan: record.group,
          }
        }
      },
      ellipsis: true
    },
    { title: '药品', dataIndex: 'drugName', width: 125, ellipsis: true},
    { title: '类型', dataIndex: 'type', width: 75,ellipsis: true },
    { title: '规格', dataIndex: 'spec',width: 85, ellipsis: true },
    { title: '数量', dataIndex: 'qty', width: 65, ellipsis: true },
    { title: '单位', dataIndex: 'unit', width: 65,ellipsis: true },
    { title: '用法', dataIndex: 'useWays', width: 70, ellipsis: true },
    { title: '用量/次', dataIndex: 'dosage', width: 80, ellipsis: true },
    { title: '次数/天', dataIndex: 'dayTimes', width: 75, ellipsis: true },
    { title: '天数', dataIndex: 'days', width: 65, ellipsis: true }
  ],
  //医嘱情况
  doctorAdviceSituationColumns: [
    { title: '序号', customRender:(text,record,index)=>index+1,width:50,fixed:'left' },
    { title: '是否提交',
      customRender: (text, record, index) => {
        return {
          children:<div>11111</div>,
          attrs: {
            rowSpan: record.group,
          }
        }
      },
      width: 80
    },
    { title: '组号',
      dataIndex: 'groupId',
      width: 60,
      customRender: (text, record, index) => {
        return {
          children: text,
          attrs: {
            rowSpan: record.group,
          }
        }
      },
      ellipsis: true
    },
    { title: '临/嘱', dataIndex: 'ftype', width: 70, ellipsis: true},
    { title: '医嘱', dataIndex: 'itemName', width: 70,ellipsis: true },
    { title: '规格', dataIndex: 'spec',width: 70, ellipsis: true },
    { title: '下达日期', dataIndex: 'startDate', width: 90, ellipsis: true },
    { title: '首次用量', dataIndex: 'firstDosage', width: 80,ellipsis: true },
    { title: '每次用量', dataIndex: 'dosage', width: 80, ellipsis: true },
    { title: '用量/单位', dataIndex: 'unit', width: 80, ellipsis: true },
    { title: '用药/频率', dataIndex: 'useTimes', width: 80, ellipsis: true },
    { title: '用药途径', dataIndex: 'useWays', width: 80, ellipsis: true }
  ],
  //等待执行医嘱情况
  awaitDoctorAdviceSituationColumns: [
    { title: '序号', customRender:(text,record,index)=>index+1,width:50,fixed:'left' },
    { title: '组号',
      dataIndex: 'groupId',
      width: 60,
      customRender: (text, record, index) => {
        return {
          children: text,
          attrs: {
            rowSpan: record.group,
          }
        }
      },
      ellipsis: true
    },
    { title: '临/嘱', dataIndex: 'ftype', width: 70, ellipsis: true},
    { title: '医嘱', dataIndex: 'itemName', ellipsis: true },
    { title: '规格', dataIndex: 'spec',width: 70, ellipsis: true },
    { title: '下达日期', dataIndex: 'startDate', width: 90, ellipsis: true },
    { title: '首次用量', dataIndex: 'firstDosage', width: 80,ellipsis: true },
    { title: '每次用量', dataIndex: 'dosage', width: 80, ellipsis: true },
    { title: '用量/单位', dataIndex: 'unit', width: 80, ellipsis: true },
    { title: '用药/频率', dataIndex: 'useTimes', width: 80, ellipsis: true },
    { title: '用药途径', dataIndex: 'useWays', width: 80, ellipsis: true }
  ],
  //医嘱情况-执行信息-产品信息
  productInfoColumns: [
    { title: '序号', customRender:(text,record,index)=>index+1,width:50 },
    { title: '产品名称', dataIndex: 'materialName', width: 120, ellipsis: true },
    { title: '数量', dataIndex: 'qty', width: 85,ellipsis: true },
    { title: '单位', dataIndex: 'unit', width: 85, ellipsis: true },
    { title: '规格', dataIndex: 'spec', width: 100, ellipsis: true },
  ],
  //用料管理
  materialSituationColumns: [
    { title: '序号', customRender:(text,record,index)=>index+1,width:60 },
    { title: '处方号', dataIndex: 'itemName',width: 130, ellipsis: true },
    { title: '药品', dataIndex: 'useTimes', width: 100, ellipsis: true},
    { title: '类型', dataIndex: 'mainDr', width: 100,ellipsis: true },
    { title: '规格', dataIndex: 'treatDr',width: 100, ellipsis: true },
    { title: '数量', dataIndex: 'beautyDr', width: 90, ellipsis: true },
    { title: '单位', dataIndex: 'circuitNurse', width: 90,ellipsis: true },
    { title: '用法', dataIndex: 'nurse', width: 90, ellipsis: true },
    { title: '用量/次', dataIndex: 'state1', width: 80, ellipsis: true },
    { title: '次数/天', dataIndex: 'state2', width: 80, ellipsis: true },
    { title: '天数', dataIndex: 'state3', width: 80, ellipsis: true }
  ],
  //物料明细
  materialDetailsColumns: [
    { title: '序号', customRender:(text,record,index)=>index+1,width:50,fixed:'left' },
    { title: '产品类型', dataIndex: 'itemType', ellipsis: true },
    { title: '产品名称', dataIndex: 'itemName', ellipsis: true},
    { title: '数量', dataIndex: 'dosage', width: 70,ellipsis: true },
    { title: '单位', dataIndex: 'unit',width: 70, ellipsis: true },
    { title: '规格', dataIndex: 'spec', width: 90, ellipsis: true },
    { title: '价格', dataIndex: 'price', width: 80,ellipsis: true },
    { title: '操作', dataIndex: 'nurse', width: 80, ellipsis: true },
  ],
  //产品信息
  productColumns: [
    { title: '编码', dataIndex: 'code', width: 80, ellipsis: true},
    { title: '拼音码', dataIndex: 'pyCode', width: 80,ellipsis: true },
    { title: '产品名称', dataIndex: 'itemName',width: 100, ellipsis: true },
    { title: '产品类别', dataIndex: 'itemType',width: 100, ellipsis: true },
    { title: '单位', dataIndex: 'unit', width: 70, ellipsis: true },
    { title: '规格', dataIndex: 'spec', width: 70, ellipsis: true },
    { title: '价格', dataIndex: 'price', width: 110,ellipsis: true },
  ],
}
module.exports={
  columns:columns
}